package com.powernode.oss.service.impl;

import com.powernode.dto.Result;
import com.powernode.oss.service.OSSService;
import com.powernode.oss.util.QiniuUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
@Service
public class OSSServiceImpl implements OSSService {


    @Override
    public Result uploadFile(MultipartFile file, String dir) {
        return QiniuUtil.upload(file, dir);
    }

    @Override
    public Result deleteFile(String filename) {
        return QiniuUtil.deleteFile(filename);
    }
}
